// Copyright Epic Games, Inc. All Rights Reserved.

#include "SmQuest.h"

#define LOCTEXT_NAMESPACE "FSmQuestModule"

void FSmQuestModule::StartupModule()
{
	// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
}

void FSmQuestModule::ShutdownModule()
{
	// This function may be called during shutdown to clean up your module.  For modules that support dynamic reloading,
	// we call this function before unloading the module.
}

USmQuestGlobals* FSmQuestModule::GetSmQuestGlobals()
{
	// Defer loading of globals to the first time it is requested
	if (!SmQuestGlobals)
	{
		SmQuestGlobals = NewObject<USmQuestGlobals>(GetTransientPackage(), USmQuestGlobals::StaticClass(), NAME_None);
		SmQuestGlobals->AddToRoot();
	}

	check(SmQuestGlobals);
	return SmQuestGlobals;
}

#undef LOCTEXT_NAMESPACE
	
IMPLEMENT_MODULE(FSmQuestModule, SmQuest)